package com.wyq.new_springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Mr Wei
 * @since 2021-03-24
 */
public class TLog implements Serializable {
    public TLog(Integer id, String action, String userId, String ip, LocalDateTime createTime) {
        this.id = id;
        this.action = action;
        this.userId = userId;
        this.ip = ip;
        this.createTime = createTime;
    }

    public TLog() {
    }

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 操作
     */
    private String action;

    private String userId;

    private String ip;

    private LocalDateTime createTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "TLog{" +
        "id=" + id +
        ", action=" + action +
        ", userId=" + userId +
        ", ip=" + ip +
        ", createTime=" + createTime +
        "}";
    }
}
